﻿<%@ Control Language="C#" ClassName="DrugDiscountFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
        <td class="literal"><asp:Label ID="lbldataMemberType" runat="server" Text="Member Type:" AssociatedControlID="dataMemberType" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataMemberType" Text='<%# Bind("MemberType") %>' MaxLength="20"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataMemberType" runat="server" Display="Dynamic" ControlToValidate="dataMemberType" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataDrugId" runat="server" Text="Drug Id:" AssociatedControlID="dataDrugId" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataDrugId" DataSourceID="DrugIdDrugDispoDataSource" DataTextField="DrugName" DataValueField="DrugId" SelectedValue='<%# Bind("DrugId") %>' AppendNullItem="true" Required="true" NullItemText="< Please Choose ...>" ErrorText="Required" />
					<data:DrugDispoDataSource ID="DrugIdDrugDispoDataSource" runat="server" SelectMethod="GetPaged"
                                Sort="DrugName ASC" />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataDiscountPercent" runat="server" Text="Discount Percent:" AssociatedControlID="dataDiscountPercent" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataDiscountPercent" Text='<%# Bind("DiscountPercent") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataDiscountPercent" runat="server" Display="Dynamic" ControlToValidate="dataDiscountPercent" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataDiscountPercent" runat="server" Display="Dynamic" ControlToValidate="dataDiscountPercent" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataRemark" runat="server" Text="Remark:" AssociatedControlID="dataRemark" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataRemark" Text='<%# Bind("Remark") %>' MaxLength="250"></asp:TextBox>
				</td>
			</tr>
			
		</table>

	</ItemTemplate>
</asp:FormView>


